﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SimpleRcon.Windows
{
    /// <summary>
    /// Interaction logic for ServerInfoWindow.xaml
    /// </summary>
    public partial class ServerInfoWindow : Window
    {
        /// <summary>
        /// Gets the server address.
        /// </summary>
        /// <value>The server address.</value>
        public string ServerAddress
        {
            get
            {
                return textbox_Address.Text;
            }
        }

        /// <summary>
        /// Gets the password.
        /// </summary>
        /// <value>The password.</value>
        public string Password
        {
            get
            {
                return textbox_Password.Password;
            }
        }

        public ServerInfoWindow()
        {
            InitializeComponent();
        }

        private void button_Connect_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
